import {request} from "../../request/index.js"

Page({
  data: {
    updateList: []
  },
  onLoad(options){
    console.log(options)
    var userId = options.userId
    request({
      url: '/client/query/plan/fault/' + userId,
      method: 'POST',
      header: {
        'content-type': 'application/x-www-form-urlencoded'
      }
    })
    .then(res => {
      console.log(res)
      this.setData({
        updateList: res.data
      })
    })
  } 
})